package com.fuze.navi.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author sepc_
 * @date 4/1/2021 15:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "line")
public class Line implements Serializable {
    private static final long serialVersionUID = -8506248548513985775L;
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 线路名称
     */
    @TableField(value = "line_name")
    private String lineName;

    /**
     * 所属电站id
     */
    @TableField(value = "station_id")
    private Long stationId;

    /**
     * 删除id
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;

    public static final String COL_ID = "id";

    public static final String COL_LINE_NAME = "line_name";

    public static final String COL_STATION_ID = "station_id";

    public static final String COL_DELETE_FLAG = "delete_flag";
}